[Unit]
Description=Jenkins
After=network.target

[Service]
Environment=
Environment="JAVA_OPTS=-XX:PermSize=1024M -XX:MaxPermSize=4048M -Xmn2048M -Xms1024M -Xmx4048M -Djenkins.install.runSetupWizard=true -Duser.timezone=Asia/Shanghai -DJENKINS_HOME={{ jenkins_home }} "
#ExecStart={{java_home}}/bin/java $JAVA_OPTS  -jar /opt/jenkins.war --httpPort={{ jenkins_port }} --prefix={{ jenkins_url_prefix }}
ExecStart={{java_home}}/bin/java $JAVA_OPTS  -jar /opt/jenkins.war --httpPort={{ jenkins_port }} 
[Install]
WantedBy=multi-user.target
